
import { Entity, NgField, NgObject, EntityList, NgList, NgDynamic, DynamicEntity, NgEntity } from '@farris/devkit';

@NgEntity({
    originalCode: "newObject2",
    nodeCode: "newObject2s"
})
export class NewObject2Entity extends Entity {

    @NgField({
        originalDataField: 'ID',
        dataField: 'id',
        primary: true,
        originalDataFieldType: 'String',
        initValue: '',
        path: 'ID',

        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    id: string;

    @NgField({
        originalDataField: 'ParentID',
        dataField: 'parentID',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'ParentID',

        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    parentID: string;

    @NgField({
        originalDataField: 'zsbh',
        dataField: 'zsbh',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'zsbh',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    zsbh: string;

    @NgField({
        originalDataField: 'note2',
        dataField: 'note2',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'note2',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    note2: string;

    @NgField({
        originalDataField: 'cjr2',
        dataField: 'cjr2',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'cjr2',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    cjr2: string;

    @NgField({
        originalDataField: 'cjsj',
        dataField: 'cjsj',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'cjsj',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    cjsj: string;

    @NgField({
        originalDataField: 'kssj2',
        dataField: 'kssj2',
        originalDataFieldType: 'Date',
        initValue: '0001-01-01T00:00:00',
        path: 'kssj2',
    })
    kssj2: string;

    @NgField({
        originalDataField: 'jsrq2',
        dataField: 'jsrq2',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'jsrq2',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    jsrq2: string;

    @NgField({
        originalDataField: 'zsje',
        dataField: 'zsje',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'zsje',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    zsje: string;

    @NgField({
        originalDataField: 'zsts',
        dataField: 'zsts',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'zsts',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    zsts: string;

    @NgField({
        originalDataField: 'zsdj',
        dataField: 'zsdj',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'zsdj',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    zsdj: string;

    @NgField({
        originalDataField: 'sfybt2',
        dataField: 'sfybt2',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'sfybt2',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    sfybt2: string;

    @NgField({
        originalDataField: 'btje2',
        dataField: 'btje2',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'btje2',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    btje2: string;

}